import { defineStore } from "pinia";

export interface MouthPoly {
    currentData:any;
    lastData:any
    currentCount:number;
    lastCount:number;
}

const useMouthPoly = defineStore("MouthPoly", {
  state: (): MouthPoly => {
    return {
        currentData:[], //弹窗数据
        lastData:[], //弹窗数据
        currentCount:0,
        lastCount:0, //是否显示展开收起箭头
    }
  },
  actions: {
    setState() {
        this.currentCount = 0;
        this.currentData = [];
        this.lastCount = 0;
        this.lastData = [];
    },
  },
});

export default useMouthPoly;